#include "qlsinterface.h"

/* -------------------- 接口信息 -------------------- */

InterfaceInfo::InterfaceInfo()
{
}

InterfaceInfo::InterfaceInfo(QString name, QString logoPath, QString information, int level, QString version) :
	m_name(name),
	m_logoPath(logoPath),
	m_information(information),
	m_level(level),
	m_version(version)
{
}

InterfaceInfo::InterfaceInfo(const QJsonObject &obj) :
	m_name(obj["name"].toString()),
	m_logoPath(obj["logoPath"].toString()),
	m_information(obj["information"].toString()),
	m_level(obj["level"].toInt()),
	m_version(obj["version"].toString())
{
}

/* -------------------- 接口 -------------------- */

